package top.loonglove.newindexserver.controller.background;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.loonglove.common.base.controller.BaseController;
import top.loonglove.common.base.query.BasePageQuery;
import top.loonglove.common.base.query.BaseQuery;
import top.loonglove.common.util.factory.http.HttpResponseFactory;
import top.loonglove.common.util.http.HttpRequest;
import top.loonglove.common.util.http.HttpResponse;
import top.loonglove.newindexserver.entity.Permission;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/7/28 1:10
 */
@Api(tags = "权限接口")
@RestController
@RequestMapping("/permission")
public class PermissionController extends BaseController<Permission, BaseQuery> {
    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return GET
     */
    @Override
    public HttpResponse get(HttpRequest<Permission, BaseQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }

    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return GET
     */
    @Override
    public HttpResponse page(HttpRequest<Permission, BasePageQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }

    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return POST
     */
    @Override
    public HttpResponse add(HttpRequest<Permission, BaseQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }

    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return UPDATE
     */
    @Override
    public HttpResponse modify(HttpRequest<Permission, BaseQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }

    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return DELETE
     */
    @Override
    public HttpResponse remove(HttpRequest<Permission, BaseQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }

    /**
     * 获取资源
     *
     * @param request REQUEST
     * @return DELETE
     */
    @Override
    public HttpResponse delete(HttpRequest<Permission, BaseQuery> request) {
        return HttpResponseFactory.buildSuccess().build();
    }
}
